package com.quanyan.user.service;

import com.lefu.commons.utils.Page;
import com.quanyan.api.APIResponse;
import com.quanyan.common.Plugin.PageObj;
import com.quanyan.user.model.db.TbComment;
import com.quanyan.user.model.vo.request.ReqNewsComment;
import com.quanyan.user.model.vo.response.RespDynamicComment;

import java.util.List;

/**
 * Created by Administrator on 2016/11/17.
 */
public interface DynamicCommentService {

    /**
     * 查询评论
     * @param reqNewsComment
     * @return
     */
    public Page<List<TbComment>> findAllComment(ReqNewsComment reqNewsComment);


    /**
     * 批量获取评论
     * @param lstDynamicId
     * @param  moduleType //模块对象
     * @return
     */
    public Page<List<TbComment>> findAllComment(int moduleType,List<Integer> lstDynamicId);


    /**
     *
     * @param reqNewsComment
     * @return
     */
    public APIResponse<PageObj<List<RespDynamicComment>>> findDynamicComment(ReqNewsComment reqNewsComment);


    /**
     * 批量查询评论
     * @param newsIds
     * @return
     */
    public List<RespDynamicComment> batchQueryByNewIds(List<Integer> newsIds);
    }
